from django.conf.urls import patterns, include, url

from django.contrib import admin
from JDchat import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'website.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'blog.views.index'),
    url(r'^login/', 'blog.views.login_view'),
    url(r'^logout/', 'blog.views.logout_view'),
    url(r'^register/', 'blog.views.register'),
    url(r'^register_go/', 'blog.views.register_go'),
    url(r'^product_list/', 'blog.views.product_list'),
    url(r'^netcard_info/', 'blog.views.netcard_info'),
    url(r'^netcard_info_go/', 'blog.views.netcard_info_go'),
    url(r'^ping_test/', 'blog.views.ping_test'),
    url(r'^ping_test_go/', 'blog.views.ping_test_go'),
    url(r'^sys_info/', 'blog.views.sys_info'),
    url(r'^myblog/', 'blog.views.myblog'),
    url(r'^myblog_list', 'blog.views.myblog_list'),
    url(r'^myblog_create', 'blog.views.myblog_create'),
    url(r'files/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
)
